<?php
namespace Admin\Controller;
use Think\Controller;
class ShowController extends Controller {
    public function ShowList(){

        // $m_id = $_GET['m_id'];

        $showsModel = M('shows');
        $shows = $showsModel -> order("s_id")->select();
         $this->index=$shows;
        // dump($masters);
        $this->display();
    
    }

    public function delshow($s_id){
    $showsModel=M('shows'); 
    //where实在构建条件
    if (false!==$showsModel->where("s_id=$s_id"/*必须是双引号*/)->delete()) {
            $this->success('删除成功！');
        } else {
            $this->error('删除失败');
        }

    }
}
?>